package com.ruoyi.framework;

import java.io.IOException;
import java.net.Socket;

public class Test extends Thread {
    @Override
    public void run() {
        Socket socket = null;
        try {
            socket = new Socket("192.168.0.10",2000);
        } catch (IOException e) {
            e.printStackTrace();
        }
        try {
            byte[] sendPlcs = new byte[4];
            sendPlcs[0]=1;
            sendPlcs[1]=1;
            sendPlcs[2]=1;
            sendPlcs[3]=1;
            socket.getOutputStream().write(sendPlcs);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
